package edu.sctu.practice.class02.mengyao.text05;

/**
 * Created by Administrator on 2015/10/12.
 */
public class Person {
    private String name;
    private int age;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;

    }

    public void display() {
        System.out.println(name);
        System.out.println(age);
    }

    public static void main(String[] args) {
        Person person = new Person("zhang", 22);
        person.display();
    }
}
